import { createSSRApp } from 'vue';
import App from '/App.vue';
import * as Pinia from 'pinia';
import uviewPlus from 'uview-plus';
import '@/uni.scss';
// import directive from './directive'; // 引入自定义指令

export function createApp() {
	const app = createSSRApp(App);
	app.use(Pinia.createPinia());
	app.use(uviewPlus);
	// directive(app);
	return {
		app,
		Pinia // 此处必须将 Pinia 返回
	};
}
